<?php

require_once("functions.php");

if(checkLogin($_SERVER)) {
	header("Location: index.php");
} else {
	header('WWW-Authenticate: Basic realm="Administration"');
	header('HTTP/1.0 401 Unauthorized');
	echo 'Login Required to Edit.<br><a href="index.php">Back</a>';
	exit;
}
?>
